import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/pages/Login'
import Register from '@/pages/Register'
import Profile from '@/pages/Profile';
import Home from '@/pages/Home'
import EditProfile from '@/pages/EditProfile'
import MyFollow from '@/pages/MyFollow'
import Test from '@/pages/test'
import MyComments from '@/pages/MyComments'
import MyCollections from '@/pages/MyCollections';
import PostDetail from '@/pages/PostDetail';
import MoreComments from '@/pages/MoreComments'
import Search from '@/pages/Search'
Vue.use(Router)

export default new Router({
  routes: [{
    
      path: '/',
      name: 'HomePage',
      component: Home
    },
    {
      path: '/login',
      name: 'LoginPage',
      component: Login
    },
    {
      path: '/register',
      name: 'RegisterPage',
      component: Register

    },
    {
      path: '/profile',
      name: 'ProfilePage',
      component: Profile
    }, 
    {
      path :'/editProfile',
      name :'EditProfilePage',
      component :EditProfile
    },
    {
      path:'/myfollow',
      name:'MyFollowPage',
      component:MyFollow
    }
    ,
    {
      path:'/test',
      name:'TestPage',
      component:Test
    },
    {
      path:'/mycomments',
      name:'MyCommentsPage',
      component:MyComments
    },
    {
      path:'/mycollections',
      name:'MyCollectionsPage',
      component:MyCollections
    },
    {
      path:'/postdetail/:id',
      name:'PostDetailPage',
      component :PostDetail
    },
    {
      path:'/morecomments/:id'
      ,name:'MoreCommentsPage',
      component:MoreComments
    },
    {
      path:'/search',
      name:'SearchPage',
      component:Search
    }

  ]
})
